package com.attendance.Utils.Converter;

import com.attendance.model.Form.VacationForm;
import com.attendance.model.Vacation;

/**
 * Created by inuyasha on 2016/11/29.
 */
public class VacationConverter {

    public static Vacation convert(VacationForm vacationForm){
        Vacation v = new Vacation();
        v.setId(vacationForm.getId());
        v.setUid(vacationForm.getUid());
        v.setNumber(vacationForm.getNumber());
        v.setRest(vacationForm.getRest());
        v.setType(vacationForm.getType());
        return v;
    }
}
